package com.jstide.credit.data.service.biz;

import cn.hutool.db.Entity;
import com.jstide.credit.data.service.Algorithm;
import lombok.Getter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.ResultSet;
import java.util.List;
import java.util.Optional;

public class Factor10 extends Algorithm {

    public static final Logger logger = LoggerFactory.getLogger(Factor10.class);

    @Getter
    public final  String name="10";

    //个体工商户登记信息
    //判断设立登记类型为个体工商户
    //30
    @Getter
    public  final String sql ="    select count(1) as TOTAL from  SHFRDJXX where SLDJLX='个体工商户' and  FDDBRSFZHM ='@sfz'    ";
    @Getter
    public final int defaultScore=30;

    @Override
    public int translate(String rs) {
        return 0 ;
    }


    @Override
    public int translate(List<Entity> rs) {
       return FactorHelper.translateTotal(name,defaultScore,rs);
    }
}
